import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import styleImport from "vite-plugin-style-import"
import path from 'path'
import _default from 'vant'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    styleImport({
      libs: [
        {
          libraryName: 'vant',
          esModule: false,
          resolveStyle: (name) => `vant/es/${name}/style/index`,
        },
      ],
    }),
  ],
  resolve:{
    alias:{
      '@':path.resolve(__dirname, "src"),
      'components':path.resolve(__dirname, "src/components"),
      'utils':path.resolve(__dirname, "src/utils"),
      'service':path.resolve(__dirname, "src/service")
    }
  }
})
